<template>
  <smart-page>


    <a-table v-model:selectedKeys="selectedKeys"
             :table-layout-fixed="theme.layoutFixed"
             :row-selection="rowSelection"
             :columns="ORDER_POP"
             :row-key="rowKey"
             :column-resizable="theme.resizable"
             :bordered="theme.bordered"
             :stripe="theme.stripe"
             :sticky-header="theme.sticky"
             :hoverable="theme.hoverAble"
             :pagination="pagination"
             :loading="theme.loading"
             :data="dataSource"
             @page-change="onPageChange"
             @page-size-change="onPageSizeChange">
      <template #action="{ record }">

        <a-link> 详情</a-link>


      </template>
    </a-table>


  </smart-page>
</template>
<script lang="ts" setup name="finance-order-pop">
import {onMounted} from 'vue';

import {ORDER_POP} from "../resource/colums";
import {TablePage} from "@/libs/core";
import {SystemHttp} from "../resource/http";
import {Acl} from "@/libs/acl";


const pageConfig = {title: '渠道收款', rowKey: 'id', nameKey: 'title'}
const {getOrderPopPage} = SystemHttp
const tablePage = new TablePage(pageConfig).setFetchXhr(getOrderPopPage).setPermission(Acl.FINANCE_ORDER_POP_PAGE_LIST);
const {theme, pagination, rowKey, dataSource, rowSelection, selectedKeys} = tablePage
const {onFetch, onPageChange, onPageSizeChange} = tablePage
onMounted(() => onFetch())
</script>

